package com.sky.dto;

import com.sky.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜品数据传输对象
 */
@ApiModel("菜品数据传输对象")
@Data
public class DishDTO implements Serializable {

    @ApiModelProperty("菜品ID")
    private Long id;

    @ApiModelProperty("菜品名称")
    private String name;

    @ApiModelProperty("菜品分类ID")
    private Long categoryId;

    @ApiModelProperty("菜品价格")
    private BigDecimal price;

    @ApiModelProperty("菜品图片")
    private String image;

    @ApiModelProperty("菜品描述")
    private String description;

    @ApiModelProperty("菜品状态(0:停售 1:起售)")
    private Integer status;

    @ApiModelProperty("菜品口味列表")
    private List<DishFlavor> flavors = new ArrayList<>();
}
